<?php echo $this->fetch('header.html'); ?>
<div class="conter">
  <?php echo $this->fetch('header.common.html'); ?>
  <div class="form_box">
   <form id="setkuan_form" method="post" >
    <dl>
     <dt>电子邮箱</dt>
     <dd><input type="input" id="email" name="email" placeholder="请输入邮箱地址" class="text_input" value="<?php echo htmlspecialchars($this->_var['profile']['email']); ?>"/></dd>
    </dl> 
    <dl>
     <dt>真实姓名</dt>
     <dd><input type="input" id="real_name" name="real_name" placeholder="请输入真实姓名" class="text_input" value="<?php echo htmlspecialchars($this->_var['profile']['real_name']); ?>"/></dd>
    </dl> 
    <dl>
     <dt>手机电话</dt>
     <dd><input type="input" id="phone_mob" name="phone_mob" placeholder="请输入手机号码或者固定电话" class="text_input" value="<?php echo htmlspecialchars($this->_var['profile']['phone_mob']); ?>"/></dd>
    </dl> 
    <dl>
     <dt>QQ号码</dt>
     <dd><input type="input" id="im_qq" name="im_qq" placeholder="请输入QQ号码" class="text_input" value="<?php echo htmlspecialchars($this->_var['profile']['im_qq']); ?>"/></dd>
    </dl>   
    <dl>
     <dt>出生日期</dt>
     <dd><input type="input" id="birthday" name="birthday" placeholder="请输入出生日期" class="text_input" value="<?php echo htmlspecialchars($this->_var['profile']['birthday']); ?>" datatype="Require"/></dd>
    </dl> 
    <dl>
     <dt>所属性别</dt>
     <dd class="box_txt"><label><input type="radio" name="gender" value="0" <?php if ($this->_var['profile']['gender'] == 0): ?>checked="checked"<?php endif; ?> /> 保密 </label>&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="gender" value="1" <?php if ($this->_var['profile']['gender'] == 1): ?>checked="checked"<?php endif; ?> /> 男 </label>&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="gender" value="2" <?php if ($this->_var['profile']['gender'] == 2): ?>checked="checked"<?php endif; ?> /> 女 </label></dd>
    </dl> 
    <dl>
     <dt>所在区域</dt>
     <dd class="box_txt"><input name="idpic" type="radio" id="rbtnyes" value="rbtnyes" <?php if ($this->_var['profile']['idpic'] != 'rbtnno'): ?>checked="checked"<?php endif; ?> /><label for="rbtnyes"> 中国</label>&nbsp;&nbsp;&nbsp;&nbsp;<input id="rbtnno" type="radio" name="idpic" value="rbtnno" <?php if ($this->_var['profile']['idpic'] == 'rbtnno'): ?>checked="checked"<?php endif; ?>/><label for="rbtnno"> 美国</label></dd>
    </dl>                          
     <p class="txt"><input type="Submit" class="button_css" value="确认修改"><input type="hidden" name="ret_url" value="<?php echo $this->_var['ret_url']; ?>" /></p>
   </form>
  </div>
<?php echo $this->fetch('footer.html'); ?>
</div>  
<div id="datePlugin"></div>
<script type="text/javascript">
//表单验证
$(function(){
    $('#birthday').date(1915,2015);
    $('#setkuan_form').validate({
        errorPlacement: function(error, element){
            element.parent('dd').append(error);
        },
        onkeyup: false,
        rules : {
            real_name : {required : true},
            phone_mob : {required : true, minlength: 6, checkTel : true},
            im_qq : {minlength: 5,maxlength: 11, digits : true}
        },
        messages : {
            real_name : {required : '请填写真实姓名. '},
            phone_mob : {required : '请填写正确的手机电话号码. ', minlength: '请输入正确的电话号码，最小为6位数字', checkTel: "请输入正确的手机号码或者固定电话"},
			im_qq : {minlength: '请输入正确的QQ号，最小为5位数字', maxlength: '请输入正确的QQ号，最大为11位数字', digits : 'QQ号码必须为数字'}
        }
    });
});
</script>
</body>
</html>